package com.tcm.consultation.enums;

import com.base.core.result.ResponseCodeEnum;

/**
 * 错误码枚举类
 *
 * 医院信息，使用 1-009-000-000 段
 */
public enum BusinessCodeEnum implements ResponseCodeEnum {


    //===============订单模块=====================
    ID_NOT_EXISTS(1009001001, "问诊单主键id不存在"),
    CONSULTATION_DATA_NOT_EXISTS(1009001002, "问诊单数据不存在"),
    CONSULTATION_ID_QUERY_FAIL(1009001003, "通过问诊单ID查询数据失败"),
    UPDATE_FAIL(1009001004, "更新失败"),
    ORDER_PAID(1009001004, "已支付订单不可取消"),
    ID_QUERY_CACHE_FAIL(1009001005, "通过id获取订单缓存失败"),
    CONSULTATION_CTEATE_FAIL(1009001006, "保存问诊单失败"),
    CONSULTATION_USER_NOT_EXISTS(1009001007, "下单用户不存在"),
    ;


    private final int code;
    private final String message;

    BusinessCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
